<template>
    <div id="other">
        <div class="box">
            <div class="header">
                <div>标题1</div>
                <div>标题2</div>
                <div>标题3</div>
                <div>标题4</div>
            </div>
            <div class="section">
              <div class="section1">
                <div v-for="(v,i) in contents" class="xleft">{{v}}</div>
              </div>
              <div class="section2">
                <div>
                     <div>
                        <div v-for="(v,i) in 8" class="xright">{{i}}</div>
                    </div>
                    <div>
                        <div v-for="(v,i) in 8" class="xright">{{i}}</div>
                    </div>
                    <div>
                        <div v-for="(v,i) in 8" class="xright">{{i}}</div>
                    </div>
                    <div>
                        <div v-for="(v,i) in 8" class="xright">{{i}}</div>
                    </div>
                </div>
              </div>  
            </div>
        </div>
    </div>
</template>

<script>
export default {
  data() {
    return {
      contents: ["a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8"]
    };
  },
  mounted() {}
};
</script>

<style scoped>
#other {
  margin-top: 2rem;
  font-size: 0;
}
.header > div {
  display: inline-block;
  font-size: 12px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  width: 1.5rem;
  height: 0.5rem;
  line-height: 0.5rem;
  text-align: center;
}
.header > div + div {
  border-left: none;
}

.section {
  height: 100px;
  font-size: 0;
  overflow-y: scroll;
}
.section::-webkit-scrollbar {
  display: none;
}
.section > div {
  display: inline-block;
  font-size: 12px;
  vertical-align: top;
}
.section1 {
  width: 1.5rem;
}
.section1 > div {
  height: 0.5rem;
  line-height: 0.5rem;
  text-align: center;
  border: 1px solid #ccc;
  box-sizing: border-box;
  border-top: none;
}
.section2 {
  width: 4.5rem;
  overflow-x: scroll;
}
.section2::-webkit-scrollbar {
  display: none;
}
.section2 > div {
  width: 6rem;
}
.section2 > div > div {
  float: left;
  width: 1.5rem;
  text-align: center;
}
.xleft {
  width: 100%;
}
.xright {
  width: 1.5rem;
  line-height: 0.5rem;
  height: 0.5rem;
  box-sizing: border-box;
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-top: none;
}
</style>
